Optimal. Leaf size=45 \[ \frac{\tan ^{-1}\left (\frac{2 x}{\sqrt{3-\sqrt{5}}}\right )}{\sqrt{10}}+\frac{\tan ^{-1}\left (\frac{2 x}{\sqrt{3+\sqrt{5}}}\right )}{\sqrt{10}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0593532, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {1163, 203} \[ \frac{\tan ^{-1}\left (\frac{2 x}{\sqrt{3-\sqrt{5}}}\right )}{\sqrt{10}}+\frac{\tan ^{-1}\left (\frac{2 x}{\sqrt{3+\sqrt{5}}}\right )}{\sqrt{10}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1163
Rule 203
Rubi steps
\begin{align*} \int \frac{1+2 x^2}{1+6 x^2+4 x^4} \, dx &=\frac{1}{5} \left (5-\sqrt{5}\right ) \int \frac{1}{3-\sqrt{5}+4 x^2} \, dx+\frac{1}{5} \left (5+\sqrt{5}\right ) \int \frac{1}{3+\sqrt{5}+4 x^2} \, dx\\ &=\frac{\tan ^{-1}\left (\frac{2 x}{\sqrt{3-\sqrt{5}}}\right )}{\sqrt{10}}+\frac{\tan ^{-1}\left (\frac{2 x}{\sqrt{3+\sqrt{5}}}\right )}{\sqrt{10}}\\ \end{align*}
Mathematica [A] time = 0.0743086, size = 83, normalized size = 1.84 \[ \frac{\left (\sqrt{5}-1\right ) \tan ^{-1}\left (\frac{2 x}{\sqrt{3-\sqrt{5}}}\right )}{2 \sqrt{5 \left (3-\sqrt{5}\right )}}+\frac{\left (1+\sqrt{5}\right ) \tan ^{-1}\left (\frac{2 x}{\sqrt{3+\sqrt{5}}}\right )}{2 \sqrt{5 \left (3+\sqrt{5}\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.075, size = 136, normalized size = 3. \begin{align*} -{\frac{2\,\sqrt{5}}{10\,\sqrt{10}-10\,\sqrt{2}}\arctan \left ( 8\,{\frac{x}{2\,\sqrt{10}-2\,\sqrt{2}}} \right ) }+2\,{\frac{1}{2\,\sqrt{10}-2\,\sqrt{2}}\arctan \left ( 8\,{\frac{x}{2\,\sqrt{10}-2\,\sqrt{2}}} \right ) }+{\frac{2\,\sqrt{5}}{10\,\sqrt{10}+10\,\sqrt{2}}\arctan \left ( 8\,{\frac{x}{2\,\sqrt{10}+2\,\sqrt{2}}} \right ) }+2\,{\frac{1}{2\,\sqrt{10}+2\,\sqrt{2}}\arctan \left ( 8\,{\frac{x}{2\,\sqrt{10}+2\,\sqrt{2}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{2 \, x^{2} + 1}{4 \, x^{4} + 6 \, x^{2} + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.31568, size = 117, normalized size = 2.6 \begin{align*} \frac{1}{10} \, \sqrt{10} \arctan \left (\frac{2}{5} \, \sqrt{10}{\left (x^{3} + 2 \, x\right )}\right ) + \frac{1}{10} \, \sqrt{10} \arctan \left (\frac{1}{5} \, \sqrt{10} x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.115144, size = 42, normalized size = 0.93 \begin{align*} \frac{\sqrt{10} \left (2 \operatorname{atan}{\left (\frac{\sqrt{10} x}{5} \right )} + 2 \operatorname{atan}{\left (\frac{2 \sqrt{10} x^{3}}{5} + \frac{4 \sqrt{10} x}{5} \right )}\right )}{20} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17602, size = 53, normalized size = 1.18 \begin{align*} \frac{1}{10} \, \sqrt{10} \arctan \left (\frac{4 \, x}{\sqrt{10} + \sqrt{2}}\right ) + \frac{1}{10} \, \sqrt{10} \arctan \left (\frac{4 \, x}{\sqrt{10} - \sqrt{2}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]